package com.ws.ssmzongjie3.mapper;

import com.ws.ssmzongjie3.bean.Acl_Role;
import com.ws.ssmzongjie3.bean.Acl_User;
import com.ws.ssmzongjie3.bean.Acl_User_Role;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface Acl_RoleMapper {
    @Insert("INSERT INTO acl_role(role_name,remark,create_time,update_time) VALUES(#{role_name},#{remark},#{create_time},#{update_time})")
    public int insertAcl_Role(Acl_Role acl_Role);
    @Delete("DELETE FROM acl_role WHERE role_id = #{role_id}")
    public int deleteAcl_Role(Acl_Role acl_Role);
    @Select("SELECT * FROM acl_role WHERE role_id = #{role_id}")
    public Acl_Role getAcl_RoleById(Acl_Role acl_Role);
    public void updateAcl_Role(Acl_Role acl_Role);
    public List<Acl_Role> listAcl_Role(Acl_Role acl_Role);
    public List<Integer> listRole_id(Acl_User acl_user);


}
